package com.xzy.seckill.pojo.dto;

import com.xzy.seckill.common.annotations.IsMobile;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="注册对象", description="")
public class RegisterDTO {

    @IsMobile //自定义校验注解 ，校验手机号格式
    @ApiModelProperty(value = "手机号码")
    private String phone;

    @NotEmpty
    @ApiModelProperty(value = "昵称")
    private String nickname;

    @NotEmpty
    @ApiModelProperty(value = "用户密码，MD5(MD5(pass明文+固定salt)+数据库salt)")
    private String password;
}
